<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title></title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        div{
            width: 300px;
            height: 100px;
            background: red;
        }
    </style>
    <script src="zepto.min.js"></script>
    <script src="touch.js"></script>
    <script>
        $(function () {
            var oDiv=$('div');

            oDiv.swipeRight(function () {
                alert(1);
            })
        })
    </script>
</head>
<body>
    <div>

    </div>
</body>
</html>
































